define(function (require, exports, module) {
    return function (jQuery) {
        (function ($) {
            /*seajs-content-start*/
            var schoolctrl = function ($scope, httpservice) {


                $scope.netunit = {
                    ddldata:[
                        {id:"1",name:"SGW1001"},
                        {id:"2",name:"SGW1002"},
                        {id:"3",name:"SGW1003"},
                        {id:"4",name:"SGW1004"},
                        {id:"5",name:"SGW1005"},
                        {id:"6",name:"SGW1006"},
                        {id:"7",name:"SGW1007"},
                        {id:"8",name:"SGW1008"}
                    ],
                    selectData:{id:"-1",name:"--选择--"},
                    width:200,
                    height:30,
                    show:false
                };
                $scope.selectData = {id:"-1",name:"--选择--"};

                $scope.selectValue = function (item) {
                    $scope.selectData = item;
                }
                $(".box").bind({
                    "mouseenter":function(){
                        $(this).find("ul").show()
                    },
                    "mouseleave":function(){
                        $(this).find("ul").hide()
                    },
                    "click":function(event){
                        if (event.target.tagName == "LI") {
                            $(this).find("input").val($(event.target).text()); //传具体的文字
                            //        $(this).find("input").val($(event.target).attr("data-value"));  传属性值
                        }
                        $(this).find("ul").hide();
                    }
                })



                $scope.msg = "欢迎来到School";
                $scope.isDrag = false;
                $scope.keyword = '';
                /*表格定义*/
                var fomatterdetail = function (cellvalue, options, rowObject) {
                    var listprint = "<button class='button ratedetailbtn' data-id='" + cellvalue + "'>"+cellvalue+"详细</button>";
                    return listprint;
                };

                var getElementByClass = function(className){
                    var classElements = [],allElements = document.getElementsByTagName('*');
                    for (var i=0; i< allElements.length; i++ )
                    {
                        if (allElements[i].className == className ) {
                            classElements[classElements.length] = allElements[i];
                        }
                    }
                    return classElements;
                };

                $scope.Frozen = function(){
                    art.alert($scope.keyword);
                };

                document.filterBtn = function(e){
                    var target = e.target;
                    var element = target.parentElement.parentElement;
                    var x = getLeft(element);
                    var y = getTop(element);
                    var width = element.offsetWidth;
                    var height = element.offsetHeight;

                    var showdivX = x;
                    var showdivY = y + height + 2;
                    $scope.showDiv(e);
                    //showDiv(e.pageX,e.pageY);
                    //$scope.showSearchDialog();
                };
                $scope.showSearchDialog = function()
                {
                    $scope.searchDialog.show();

                };

                var showDiv = function(x,y){
                    $("#testDiv").css("display", "block");
                    $("#testDiv").css("left", x);
                    $("#testDiv").css("top", y);
                };

                $scope.showDiv = function (e) {
                    //$("#testDiv").css("display", "block");
                    $("#testDiv").show();
                    $('#inputtext').focus();
                    //$("#testDiv").css("left", e.pageX);
                    //$("#testDiv").css("top", e.pageY);
                    //alert('hello');
                };

                $('#inputtext').live('blur', function (event) {
                    //alert('nihao');
                    //$("#testDiv").hide();
                });

                $('#inputtext').live('input', function(e){
                    $("#divSearch").css("display","block");
                    //art.alert('input');
                });

                $('#inputtext').live('keydown', function (event) {
                    if(event.keyCode==13)
                    {
                        $("#divSearch").css("display","none");
                        //art.alert('press down is enter');
                    }
                });

                $(document).live("mousedown",function(e){
                    if(e.target.nodeName.toLowerCase() == "input"&&e.target.id == "inputtext"){
                        $scope.isDrag = true;
                        $('#inputtext').css("cursor","move");
                    }

                });

                $(document).bind("mouseup",function(e){
                    $scope.isDrag = false;
                    $('#inputtext').css("cursor","text");
                });

                $(document).live("mousemove",function(e){
                    var div = document.getElementById('testDiv');
                    if($scope.isDrag){
                        div.style.left=e.clientX+'px';
                        div.style.top=e.clientY+'px';
                    }
                });

                $("#gridx").bind("scroll",function(e) {
                    alert("nimei");
                });

                $('.rightbottom').live('click', function(e){
                    alert('aaa00');
                });

                $("#jqgh_img_age").live('click', function(e){
                    alert('nihao age');
                });

                //获取元素的纵坐标 
                function getTop(e){
                    var offset=e.offsetTop;
                    if(e.offsetParent!=null)
                        offset+=getTop(e.offsetParent);
                    return offset;
                };
                //获取元素的横坐标 
                function getLeft(e){
                    var offset=e.offsetLeft;
                    if(e.offsetParent!=null)
                        offset+=getLeft(e.offsetParent);
                    return offset;
                };

                //$scope.filterBtn = function(){alert('hi');};
                $scope.grid1 = {
                    gridpagedata:{
                        nowpage:1,
                        totalpage:20,
                        pagesize:15,
                        pagelist:[15,25,35],
                        toFirstpage: function(){
                            alert('首页');
                        },
                        toToppage: function(){
                            alert('上一页');
                        },
                        toNextpage: function(){
                            $scope.grid1.gridpagedata.nowpage++;
                            alert('下一页');
                        },
                        toLastpage: function(){
                            alert('最后一页');
                        },
                        topage: function(){
                            alert('第' + $scope.grid1.gridpagedata.nowpage + '页');
                        },
                        changePagesize: function(){
                            alert('切换到每页' + $scope.grid1.gridpagedata.pagesize + '条');
                        }
                    },
                    griddata: {
                        colnames: [ 'ID','姓名', '性别', '年龄', '职业' ,"电话","操作" ],
                        colmodel: [
                            { name: 'id', index: 'id', sortable: true, width: 250, frozen: true,align:"center" },
                            { name: 'name', index: 'name', sortable: true, width: 250,sortable:false, frozen: true,align:"center" },
                            { name: 'sex', index: 'sex', sortable: false, width: 250, frozen: false ,align:"center"},
                            { name: 'age', index: 'age', sortable: true, width: 250, sorttype: 'number',align:"center"},
                            { name: 'job', index: 'job', sortable: false,width:250 ,align:"center"},
                            { name: 'tel', index: 'tel', sortable: false, width: 250 ,align:"center"},
                            { name: 'operate', index: 'operate', sortable: false, width: 250,align:"center",formatter: fomatterdetail }

                        ],
                        data: [
                            //{ "name": "", "age": "", sex:"", "tel": "", "id": null, job:"" },
                            { "name": "张飞", "age": 36, sex:"男", "tel": "13666666666", "id": 6, job:"屠夫" ,operate:"ddd"},
                            { "name": "关羽", "age": 37, sex:"男","tel": "13777777777", "id": 7 , job:"屠夫",operate:"ddd"},
                            { "name": "刘备", "age": 38, sex:"男","tel": "13888888888", "id": 8 , job:"屠夫",operate:"ddd"},
                            { "name": "曹操", "age": 39, sex: "男", "tel": "13999999999", "id": 9, job: "屠夫",operate:"ddd" },
                            { "name": "张飞", "age": 336, sex: "男", "tel": "13666666666", "id": 6, job: "屠夫",operate:"ddd" },
                            { "name": "关羽", "age": 337, sex: "男", "tel": "13777777777", "id": 7, job: "屠夫",operate:"ddd" },
                            { "name": "刘备", "age": 48, sex: "男", "tel": "13888888888", "id": 8, job: "屠夫",operate:"ddd" },
                            { "name": "曹操", "age": 49, sex: "男", "tel": "13999999999", "id": 9, job: "屠夫" ,operate:"ddd"},
                            { "name": "刘备", "age": 418, sex: "男", "tel": "13888888888", "id": 8, job: "屠夫",operate:"ddd" },
                            { "name": "曹操", "age": 419, sex: "男", "tel": "13999999999", "id": 9, job: "屠夫",operate:"ddd" }
                        ]
                    },
                    obj:{},
//                    onSortCol: function (index) {
//                                           //alert(index);
//                                        },
                    gridresize: function (grid) {
                        grid.setGridWidth($(window).width()-300);
                        grid.setGridHeight(300);
                    }
                };

                $scope.grid2 = {
                    griddata: {
                        colnames: [ 'ID','姓名', '性别', '年龄', '职业' ,"电话","地址" ],
                        colmodel: [
                            { name: 'id', index: 'id', sortable: true, width: 200, frozen: true },
                            { name: 'name', index: 'name', sortable: true, width: 200, frozen: true },
                            { name: 'sex', index: 'sex', sortable: true, width: 200, frozen: true },
                            { name: 'age', index: 'age', sortable: true , width: 200, sorttype: 'number'},
                            { name: 'job', index: 'job', sortable: false, width: 200 },
                            { name: 'tel', index: 'tel', sortable: false, width: 200 },
                            { name: 'addr', index: 'addr', sortable: false, width: 200 }

                        ],
                        data: [
                            { "name": "老一", "age": 36, "sex":"男", "tel": "13666666666", "id": 1, job:"屠夫" },
                            { "name": "老二", "age": 37, "sex":"男","tel": "13777777777", "id": 2 , job:"屠夫"},
                            { "name": "老三", "age": 38, "sex":"男","tel": "13888888888", "id": 3 , job:"屠夫"},
                            { "name": "张三", "age": 39, "sex": "男", "tel": "13999999999", "id": 4, job: "屠夫" },
                            { "name": "李四", "age": 336, "sex": "男", "tel": "13666666666", "id": 5, job: "屠夫" },
                            { "name": "王五", "age": 337, "sex": "男", "tel": "13777777777", "id": 6, job: "屠夫" },
                            { "name": "阿六", "age": 48, "sex": "男", "tel": "13888888888", "id": 7, job: "屠夫" },
                            { "name": "小七", "age": 49, "sex": "男", "tel": "13999999999", "id": 8, job: "屠夫" },
                            { "name": "刘八", "age": 418, "sex": "男", "tel": "13888888888", "id": 9, job: "屠夫" },
                            { "name": "邓九", "age": 419, "sex": "男", "tel": "13999999999", "id": 10, job: "屠夫" }
                        ]
                    },
                    obj:{},
                    onSortCol: function (index) {
                        alert(index);
                    },
                    gridresize: function (grid) {
                        grid.setGridWidth($(window).width()-300);
                        grid.setGridHeight(250);
                    },
                    shrinkToFit: false,
                    rowNum: 10,
                    rowList: [10, 20, 30],
                    pager: jQuery('#pager'),
                    sortname: 'id',
                    viewrecords: true,
                    sortorder: "desc",
                    grouping:true,
                    groupingView : {
                        groupField : ['name'],
                        groupColumnShow : [true],
                        groupText : ['<b>{0} - {1} Item(s)</b>'],
                        groupCollapse : true,
                        groupOrder: ['desc']
                    },
                    caption: "列冻结高度问题--未冻结比冻结的列高"
                };


                /*树定义*/
                $scope.ztree1 = {
                    obj: "",
                    data: []
                };
                $scope.ztree2 = {
                    obj: "",
                    filter: "",
//                    tofilter: function () { },
                    data: [
                        { id: 1, name: '无记录', children: [
                            { id: 11, name: '无记录' },
                            { id: 12, name: '无记录' },
                            { id: 13, name: '无记录' }
                        ]
                        },
                        { id: 2, name: '网络原因', children: [
                            { id: 21, name: 'Padding失败(8/4)' },
                            { id: 22, name: 'TCP连接失败(31/2)' },
                            { id: 23, name: 'Post失败(2/2)' },
                            { id: 24, name: 'Get失败(6/2)' },
                            { id: 25, name: 'DNS解析失败(1/1)' }
                        ]
                        },
                        { id: 3, name: '用户原因', children: [
                            { id: 31, name: 'TCP连接失败(28/4)' },
                            { id: 32, name: 'Post失败(1/1)' }
                        ]
                        },
                        { id: 4, name: '服务商提供原因', children: [
                            { id: 31, name: 'DNS解析失败(134/3)' },
                            { id: 32, name: 'Post失败(3/3)' }
                        ]
                        }
                    ]
                };

                /*图表定义*/
                $scope.highchart1 = {
                    chartdata: {
                        chart: {
                            type: 'pie'
                        },
                        title: {
                            text: null
                        },
                        plotOptions: {
                            pie: {
                                shadow: false,
                                center: ['50%', '50%'],
                                allowPointSelect: true
                            }
                        },
                        tooltip: {
                            valueSuffix: '次'
                        },
                        series: [
                            {
                                name: '异常数',
                                data: [
                                    { name: 'Padding失败', y: 8 },
                                    { name: 'TCP连接失败', y: 31 },
                                    { name: 'Post失败', y: 2 },
                                    { name: 'Get失败', y: 6 },
                                    { name: 'DNS解析失败', y: 1 },
                                    { name: 'TCP连接失败', y: 31 },
                                    { name: 'Post失败', y: 2 },
                                    { name: 'DNS解析失败', y: 134 },
                                    { name: 'Post失败', y: 3 }
                                ],
                                cursor: 'pointer',
                                size: '75%',
                                innerSize: '55%',
                                dataLabels: {
                                    formatter: function () {
                                        return this.y > 1 ? '<b>' + this.point.name + ':</b> ' + this.y + '次' : null;
                                    }
                                }
                            },
                            {
                                name: '异常数',
                                data: [{ name: '网络原因', y: 40 }, { name: '用户原因', y: 40 }, { name: '服务提供商原因', y: 40}],
                                cursor: 'pointer',
                                size: '55%',
                                dataLabels: {
                                    formatter: function () {
                                        return this.y > 5 ? this.point.name : null;
                                    },
                                    color: 'white',
                                    distance: -40
                                }
                            }
                        ]
                    },
                    obj: {}
                };
                $scope.highchart2 = {
                    chartdata: {
                        chart: {
                            type: 'line'
                        },
                        title: {
                            text: '折线图'
                        },
                        xAxis: {
                            categories: ['2013-08-23 01:00', '2013-08-23 02:00', '2013-08-23 03:00', '2013-08-23 04:00', '2013-08-23 05:00']
                        },
                        series: [{
                            name: 'SGSN202',
                            data: [20, 10, 50, 30, 26]
                        }, {
                            name: 'SGSN203',
                            data: [40, 12, 20, 15, 53]
                        }, {
                            name: 'SGSN204',
                            data: [13, 28, 30, 19, 38]
                        }]
                    },
                    obj: {}
                };

                $scope.echart1 = {
                    chartdata:{
                        tooltip: {
                            show: true
                        },
                        legend: {
                            data:['销量']
                        },
                        xAxis : [
                            {
                                type : 'category',
                                data : ["衬衫","羊毛衫","雪纺衫","裤子","高跟鞋","袜子"]
                            }
                        ],
                        yAxis : [
                            {
                                type : 'value'
                            }
                        ],
                        series : [
                            {
                                "name":"销量",
                                "type":"line",
                                "data":[5, 20, 40, 10, 10, 20]
                            }
                        ]
                    },
                    obj:{}
                };
                $scope.echart2 = {
                    chartdata:{
                        tooltip: {
                            show: true
                        },
                        legend: {
                            data:['销量']
                        },
                        xAxis : [
                            {
                                type : 'category',
                                data : ["衬衫","羊毛衫","雪纺衫","裤子","高跟鞋","袜子"]
                            }
                        ],
                        yAxis : [
                            {
                                type : 'value'
                            }
                        ],
                        series : [
                            {
                                "name":"销量",
                                "type":"bar",
                                "data":[5, 20, 40, 10, 10, 20]
                            }
                        ]
                    },
                    obj:{}
                };

                $scope.echart3 = {
                    chartdata:{
                        title : {
                            text: '某站点用户访问来源',
                            subtext: '纯属虚构',
                            x:'center'
                        },
                        tooltip : {
                            trigger: 'item',
                            formatter: "{a} <br/>{b} : {c} ({d}%)"
                        },
                        legend: {
                            orient : 'vertical',
                            x : 'left',
                            data:['直接访问','邮件营销','联盟广告','视频广告','搜索引擎']
                        },
                        toolbox: {
                            show : true,
                            feature : {
                                mark : {show: true},
                                dataView : {show: true, readOnly: false},
                                magicType : {
                                    show: true,
                                    type: ['pie', 'funnel'],
                                    option: {
                                        funnel: {
                                            x: '25%',
                                            width: '50%',
                                            funnelAlign: 'left',
                                            max: 1548
                                        }
                                    }
                                },
                                restore : {show: true},
                                saveAsImage : {show: true}
                            }
                        },
                        calculable : true,
                        series : [
                            {
                                name:'访问来源',
                                type:'pie',
                                radius : '55%',
                                center: ['50%', '60%'],
                                data:[
                                    {value:335, name:'直接访问'},
                                    {value:310, name:'邮件营销'},
                                    {value:234, name:'联盟广告'},
                                    {value:135, name:'视频广告'},
                                    {value:1548, name:'搜索引擎'}
                                ]
                            }
                        ]
                    },
                    obj:{}
                };

                $scope.echart4 = {
                    chartdata:{
                        tooltip : {
                            formatter: "{a} <br/>{b} : {c}%"
                        },
                        toolbox: {
                            show : true,
                            feature : {
                                mark : {show: true},
                                restore : {show: true},
                                saveAsImage : {show: true}
                            }
                        },
                        series : [
                            {
                                axisLine: {            // 坐标轴线
                                    lineStyle: {       // 属性lineStyle控制线条样式
                                        color: [[0.2, '#2ec7c9'],[0.8, '#5ab1ef'],[1, '#d87a80']],
                                        width: 5
                                    }
                                },
                                axisTick: {            // 坐标轴小标记
                                    splitNumber: 10,   // 每份split细分多少段
                                    length :15,        // 属性length控制线长
                                    lineStyle: {       // 属性lineStyle控制线条样式
                                        color: 'auto'
                                    }
                                },
                                splitLine: {           // 分隔线
                                    length :22,         // 属性length控制线长
                                    lineStyle: {       // 属性lineStyle（详见lineStyle）控制线条样式
                                        color: 'auto'
                                    }
                                },
                                pointer : {
                                    width : 5
                                },
                                name:'业务指标',
                                type:'gauge',
                                detail : {formatter:'{value}%'},
                                data:[{value: 50, name: '完成率'}]
                            }
                        ]
                    },
                    obj:{}
                };


                /*时间定义*/
                $scope.query = {
                    starttime: { time: '', obj: '', config: {
                        timeFormat: '',
                        showHour: false,
                        showMinute: false
                    }
                    },
                    endtime: { time: '', obj: '' }
                };

                /*弹出框定义*/
                $scope.dialog1 = {
                    title: "新建查询",
                    //                    show: function () { },
                    ok: function () { alert('您即将关闭弹出框dialog1') },
                    cancel: function () { }
                };
                $scope.searchDialog = {
                    title: "模糊查询",
                    lock:false,
                    //show: function () { },
                    ok: function () {},
                    cancel: function () {}
                }

                $scope.init = (function () {
                    art.alert('jjj');
                    $scope.$watch($scope.dialog1.show, function (newValue, oldValue) {
                        //$scope.dialog1.show();
                        //$scope.dialog1.show();
                    });

                    console.log($scope.grid1.obj);

                    $scope.$watch($scope.grid1.obj,function(newVal,oldVal){
                        console.log($scope.grid1.obj);
                        //$scope.grid1.obj.jqGrid("setFrozenColumns");
                        //$scope.grid1.obj.jqGrid('filterToolbar', { stringResult: true, searchOnEnter: true, defaultSearch: "cn" });
                        //$scope.grid2.obj.jqGrid('navGrid', '#pager', {edit: false,add: false,del: false});

                        $("#jqgh_ gridx_name").append("<img src='../webhtml/images/jds.png'/>");
                        /*
                         var header = document.getElementById('jqgh_ gridx_age');
                         var inputX = document.createElement('img');
                         inputX.setAttribute('src', '../webhtml/images/jds.png');
                         inputX.setAttribute('onclick', "filterBtn()");
                         inputX.setAttribute('class', "rightbottom");
                         header.appendChild(inputX);*/

                        var tableHtml = '<table id="testDiv" style="position: fixed;z-index: 1;margin-top: 4px;margin-left: -5px;display: none;">'+
                            '<tbody>'+
                            '<tr>'+
                            '<td>'+
                            '<div style="border-radius:3px;">'+
                            '<input id="inputtext" style="width: 250px;height: 19px;border-radius:3px;border:2px solid rgb(132, 132, 207);"/>'+
                            '<div id="divSearch" style=" height:200px; overflow:auto;" class="filterdiv">'+
                            '<ul id="ulList" class="filterlist">'+
                            '<li title="迈克尔·乔丹">&nbsp;迈克尔·乔丹</li>'+
                            '<li title="特雷西·麦克格雷迪">&nbsp;特雷西·麦克格雷迪</li>'+
                            '<li title="科比·布莱恩特">&nbsp;科比·布莱恩特</li>'+
                            '<li title="勒布朗·詹姆斯">&nbsp;勒布朗·詹姆斯</li>'+
                            '<li title="凯文·杜兰特">&nbsp;凯文·杜兰特</li>'+
                            '<li title="拉塞尔·维斯布鲁克">&nbsp;拉塞尔·维斯布鲁克</li>'+
                            '<li title="蒂姆·邓肯">&nbsp;蒂姆·邓肯</li>'+
                            '<li title="凯文·加内特">&nbsp;凯文·加内特</li>'+
                            '<li title="德克·诺维斯基">&nbsp;德克·诺维斯基</li>'+
                            '<li title="凯里·欧文">&nbsp;凯里·欧文</li>'+
                            '</ul>'+
                            '</div>'+
                            '</div>'+
                            '</td>'+
                            '</tr>'+
                            '</tbody>'+
                            '</table>';

//                        var colModel = $scope.grid1.griddata.colmodel;
//                        var colName= "";
//                        var colID = "";
//                        for(var i=0 ;i<colModel.length; i++){
//                            colName = colModel[i].name;
//                            colID = "jqgh_ gridx_" + colName;

//                            var filter = document.getElementById(colID);
//                            var html= filter.innerHTML+"<img id='jqgh_img_"+colName+"' src='../webhtml/images/jds.png' onclick='filterBtn(event)' class = 'rightbottom'/>";
//                            filter.innerHTML= html;
//                        }
                        var filter = document.getElementById("jqgh_ gridx_name");
                        var html= filter.innerHTML+"<img id='jqgh_img_name' src='../webhtml/images/jds.png' onclick='filterBtn(event)'  class = 'rightbottom'/>"+tableHtml;
                        filter.innerHTML= html;

                    });

                    /*直接赋值*/
//                    $scope.grid1.griddata.data = [
//                        { "name": "张飞", "age": 36, "tel": "13666666666", "id": 6 },
//                        { "name": "关羽", "age": 37, "tel": "13777777777", "id": 7 },
//                        { "name": "刘备", "age": 38, "tel": "13888888888", "id": 8 },
//                        { "name": "曹操", "age": 39, "tel": "13999999999", "id": 9 }
//                    ]
//                    $scope.grid1.griddata.data = [
//                        { "name": "张飞", "age": 36, sex:"男", "tel": "13666666666", "id": 6 },
//                        { "name": "关羽", "age": 37, sex:"男","tel": "13777777777", "id": 7 },
//                        { "name": "刘备", "age": 38, sex:"男","tel": "13888888888", "id": 8 },
//                        { "name": "曹操", "age": 39, sex:"男","tel": "13999999999", "id": 9 }
//                    ]

                    /*jquery的ajax*/
                    //                    $scope.$emit('loading', 'true');
                    //                    httpservice.getJSON('data/school/table.json', '', function (data) {
                    //                        $scope.grid1.griddata.data = data;
                    //                    }).complete(function(){
                    //                            $scope.$emit('loading', 'false');
                    //                            $scope.$apply();
                    //                        });

                    /*angularjs的ajax*/
                    //                    $scope.$emit('loading', 'true');
                    //                    httpservice.httpsget('data/school/table.json')
                    //                        .success(function(data){
                    //                            $scope.grid1.griddata.data = data;
                    //                            $scope.$emit('loading', 'false');
                    //                        })

                    /*树-直接赋值*/
                    $scope.ztree1.data = [
                        { id: 1, name: '无记录', children: [
                            { id: 11, name: '无记录' },
                            { id: 12, name: '无记录' },
                            { id: 13, name: '无记录' }
                        ]
                        },
                        { id: 2, name: '网络原因', children: [
                            { id: 21, name: 'Padding失败(8/4)' },
                            { id: 22, name: 'TCP连接失败(31/2)' },
                            { id: 23, name: 'Post失败(2/2)' },
                            { id: 24, name: 'Get失败(6/2)' },
                            { id: 25, name: 'DNS解析失败(1/1)' }
                        ]
                        },
                        { id: 3, name: '用户原因', children: [
                            { id: 31, name: 'TCP连接失败(28/4)' },
                            { id: 32, name: 'Post失败(1/1)' }
                        ]
                        },
                        { id: 4, name: '服务商提供原因', children: [
                            { id: 31, name: 'DNS解析失败(134/3)' },
                            { id: 32, name: 'Post失败(3/3)' }
                        ]
                        }
                    ];
                })();
            };
            angular.module('school-ctrl', [])
                .controller('SchoolCtrl', ['$scope', 'HttpService', schoolctrl])
            /*seajs-content-end*/
        })(jQuery);
    }
})